package com.hrms.hrms_employee.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hrms.common.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 部门表(Department)表实体类
 *
 * @author makejava
 * @since 2025-01-14 16:22:16
 */

@Data
public class Department extends BaseEntity {
    //部门名称
    private String name;
    //所属部门 ID
    private Long parentId;
    //层级
    private Integer level;
    //code
    private Long code;
    //title
    private String title;
    //部门描述
    private String description;
    //部门职责
    private String duties;
    //是否删除，默认为0
    private Integer isDeleted;
    //状态，默认为0
    private Integer state;
    /**
     * 子分类
     */
    @TableField(exist = false)
    private List<Department> children;

    /**
     * 对应岗位
     */
    @TableField(exist = false)
    private List<Station> station;
    }

